/*  This file is part of LibGChart.
 *
 * AUTHORS
 *       Sascha Dewald        <sascha.dewald@googlemail.com>
 *
 * Copyright (C) 2009 Sascha Dewald
 *
 *  
 *  
 *  LibGChart is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  Foobar is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with LibGChart.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */

using System;

namespace LibGChart
{
	
	/**
	 * class GPoint
	 */
	public class GPoint
	{
		//TODO: avoid call of the standard constructor from outside (there should be a better way to doing this)
		private GPoint() 
		{
		}
		
		/**
		 * the default constructor of the Point
		 */
		public GPoint(double x, double y)
		{
			valueX = x;
			valueY = y;
		}
		
		private double valueY;
		private double valueX;
		
		/**
		 * internal double realX, realY, represent the real coords of the Point
		 */
		internal double realX, realY;
		
		/**
		 * Property ValueX, represent the real Value of the Point
		 */
		public double ValueX {
			get { return valueX; }
			set {
				if (valueX != value)
				{
					valueX = value;
				}
			}
		}
		
		/**
		 * Property ValueY, represent the real Value of the Point
		 */
		public double ValueY {
			get { return valueY; }
			set {
				if (valueY != value)
				{
					valueY = value;
				}
			}
		}
	}
}
